#ifndef CLIPRECT_H
#define CLIPRECT_H
#include "canvas1.h"

class ClipRect : public IntRect
{
    public:
    ClipRect(void);
    ClipRect(int left, int right, int bottom, int top);
    bool clip(Point2 *start, Point2 *end);
    private:
    char isPointOut(Point2 *point);
    void chopLine(Point2 *point, Point2 *del, char code);

};
#endif /* CLIPRECT_H */
